Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sip10 token default max length, closes #4930 #5048

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

alter-eggo
Copy link
Contributor

@alter-eggo alter-eggo commented Mar 9, 2024

Try out this version of Leather — Extension build, Test report

Set sip10 token max length to Infinity, as we don't know it's decimals and num can be big

@alter-eggo alter-eggo requested review from kyranjamie and fbwoolf March 9, 2024 18:38
@alter-eggo alter-eggo linked an issue Mar 9, 2024 that may be closed by this pull request
@alter-eggo alter-eggo force-pushed the fix/sip10-max-length branch from 3613b8f to 6eaea3e Compare March 9, 2024 18:46
Copy link
Collaborator

@kyranjamie kyranjamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but pretty sure we should set a max rather than use Infinity, as this isn't accurate.

@alter-eggo alter-eggo added this pull request to the merge queue Mar 11, 2024
Merged via the queue into dev with commit 22b695e Mar 11, 2024
28 checks passed
@alter-eggo alter-eggo deleted the fix/sip10-max-length branch March 11, 2024 10:43
@markmhendrickson markmhendrickson linked an issue Mar 11, 2024 that may be closed by this pull request
@fbwoolf
Copy link
Contributor

fbwoolf commented Mar 11, 2024

Not understanding this change tbh? Why have it at all if it is Infinity? This didn't break the input field font resizing? I thought it was used in that calc?

@alter-eggo
Copy link
Contributor Author

alter-eggo commented Mar 11, 2024

@fbwoolf yeah, it's not the best solution,I now think that could have done it better just getting max input length from users available asset balance...

but current implementation doesn't make much sense at all, since we set maxLength using decimals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't input more than 9999 MEGA to send Unable to send large quantity (500M) of SIP10 token
3 participants